import os
import sys

from paste.registry import StackedObjectProxy

NAME_SPACE ='http://pyframe.ru'

instance = StackedObjectProxy()

rootDirectory = os.path.dirname(globals()["__file__"] ) + "/../../"
frontDirectory = rootDirectory + 'front/'

def getRequest():
	return instance.getRequest()

def getEnviron():
	return instance.getEnviron()	

def getXmlHelper():
	return instance.getXmlHelper()

def getFrontDirectory():
	return frontDirectory